import Vue from 'vue'
import Router from 'vue-router'
import Home from '../pages/Home'

Vue.use(Router)

export default new Router({
    linkActiveClass:'is-active',
  routes: [
   {
      path: '/',
      component: Home
    },
    {
      path:'/Comic',
      component:resolve=>{
        require(['../pages/Comic'],resolve)
      }
    },
    {
      path:"/Image",
      component:resolve=>{
        require(['../pages/Image'],resolve)
      }
    },
    {
      path:'/News',
      component:resolve=>{
        require(['../pages/News'],resolve)
      }
    },
     {
      path:'/comic/more',
      component:resolve=>{
        require(['../pages/more'],resolve)
      }
    },
      {
      path:'/comic/two',
      component:resolve=>{
        require(['../pages/Two'],resolve)
      }
    },
     {
      path:'/comic/three',
      component:resolve=>{
        require(['../pages/Three'],resolve)
      }
    },
     {
      path:'/comic/four',
      component:resolve=>{
        require(['../pages/Four'],resolve)
      }
    },
      {
      path:'/comic/five',
      component:resolve=>{
        require(['../pages/Five'],resolve)
      }
    },
        {
      path:'/comic/six',
      component:resolve=>{
        require(['../pages/Six'],resolve)
      }
    },
        {
      path:'/comic/warmblood',
      component:resolve=>{
        require(['../pages/Warmblood'],resolve)
      }
    },
       {
      path:'/comic/sports',
      component:resolve=>{
        require(['../pages/Sports'],resolve)
      }
    },
       {
      path:'/comic/science',
      component:resolve=>{
        require(['../pages/Science'],resolve)
      }
    },
      {
      path:'/comic/mech',
      component:resolve=>{
        require(['../pages/Mech'],resolve)
      }
    },
       {
      path:'/comic/reasoning',
      component:resolve=>{
        require(['../pages/Reasoning'],resolve)
      }
    },
        {
      path:'/image/yi:id',
      component:resolve=>{
        require(['../pages/yi'],resolve)
      }
    },
      {
      path:'/comic/content/:id/:name',
      component:resolve=>{
        require(['../pages/Content'],resolve)
      }
    },
     {
      path:'/comic/contentdetails/:id/:name',
      component:resolve=>{
        require(['../pages/Contentdetails'],resolve)
      }
    },
     {
      path:'/news/informationdetails/:id/:name',
      component:resolve=>{
        require(['../pages/Informationdetails'],resolve)
      }
    },
     {
      path:'/image/mitodetails/:id/:name',
      component:resolve=>{
        require(['../pages/Mitodetails'],resolve)
      }
    },
     {
      path:'/comic/mulu/:id/:name',
      component:resolve=>{
        require(['../pages/Mulu'],resolve)
      }
    }
  ]
})
